﻿using MediatR;
using SmartCity.ProcessEngine.Api.Read.Dtos;
using SmartCity.ProcessEngine.ErrorCode;

namespace SmartCity.ProcessEngine.Api.Read.Application.Command.Node
{
    /// <summary>
    /// 获取节点分页列表的请求命令
    /// </summary>
    public class GetNodeCommand:IRequest<ApiPaging<NodeDTO>>
    {
        /// <summary>
        /// 当前页码
        /// </summary>
        public int PageIndex { get; set; } = 1;
        /// <summary>
        /// 每页大小
        /// </summary>
        public int PageSize { get; set; } = 10;

        /// <summary>
        /// 查询条件:节点名称
        /// </summary>
        public string? NodeName {  get; set; }
        /// <summary>
        /// 查询条件:节点编号
        /// </summary>
        public string? NodeCode{  get; set; }
        /// <summary>
        /// 所属节点的id
        /// </summary>
        public long FormId {  get; set; }
    }
}
